<template>
    <div class="broadCast-man">
        <div class="system-title">广播报名名单</div>
        <el-table
            :header-cell-style="{color:'#555555'}"
            class="black"
            :data="tableData"
            stripe
            border
            style="width: 100%">
            <el-table-column
                prop="id"
                label="用户ID"
                align="center">
            </el-table-column>
            <el-table-column
                prop="release_name"
                label="发布人"
                align="center">
            </el-table-column>
            <el-table-column
                prop="nickname"
                label="报名人"
                align="center">
            </el-table-column>
            <el-table-column
                label="是否已约"
                align="center">
                <template slot-scope="scope">
                {{scope.row.isDated == 1?'是':'否'}}
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    name: 'broadCast-man',
    data () {
        return {
            id: '',
            release_name: '',
            tableData: []
        }
    },
    created () {
        this.tableData = []
    },
    mounted () {
        // 进来页面获取课程
        this.id = this.$route.params.id
        this.release_name = this.$route.params.release_name
        this.getData()
    },
    methods: {
        getData () {
            let _this = this
            let params = {
                broadCastId: this.id,
                page: 1,
                size: 9999
            }
            let data = {
                'params': params
            }
            this.$api.broadCast.getSignName(data, res => {
                // 隐藏加载动画
                // this.$vux.loading.hide()
                if (res.code === 200) {
                    _this.tableData = res.data
                    for (var i in _this.tableData) {
                        _this.tableData[i].release_name = _this.release_name
                    }
                }
            })
        }
    }
}
</script>

<style lang="less">
.broadCast-man {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px 0;
    .system-title{
        font-size: 22px;
        margin-bottom: 40px;
    }
    .margin-bottom-12 {
        margin-bottom: 10px;
    }
    .el-row {
        margin-bottom: 20px;
        &:last-child {
            margin-bottom: 0;
        }
    }
    .el-col {
        border-radius: 4px;
    }
    .grid-content {
        position: relative;
        height: 40px;
    }
    .grid-padding {
        /* padding-left: 20px; */
        padding-right: 20px;
    }
    .grid-title {
        float: left;
        width: 72px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        color: #333;
        text-align: center;
    }
    .grid-input {
        float: left;
        width: 130px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        color: #333;
        text-align: center;
    }
    .row-bg {
        padding: 10px 0;
        background-color: #f9fafc;
    }
    .footer-page {
        width: 540px;
        padding-top: 20px;
    }
    .signerList {
        color: #6da0f0;
        &:hover {
        cursor: pointer;
        }
    }
}
</style>
